package com.jc.framework.web;

public class ResponseResultModel<T> extends ResponseBaseModel {
	
	public T data;
	
	
	public ResponseResultModel() {
		
	}
	
	public ResponseResultModel(T data) {
		super(ErrorEnum.C10000);
		this.data = data;
	}
	
	
	public ResponseResultModel(String message,T data) {
		super(ErrorEnum.C10000);
		this.data = data;
		this.message = message;
	}


	public ResponseResultModel(int code,String message,T data) {
		super(ErrorEnum.C10000);
		this.data = data;
		this.code = code;
		this.message = message;
	}
	
	public ResponseResultModel(ErrorEnum error ,T data) {
		super(error);
		this.data = data;	
	}
	
	public String getMessage() {
		return message;
	}
	
	public void setMessage(String message) {
		this.message = message;
	}
	
	public int getCode() {
		return code;
	}
	
	public void setCode(int code) {
		this.code = code;
	}
	
	
	public void setCodeAndMessage(int code,String message) {
		this.code = code;
		this.message = message;
	}
	
	
	public T getData() {
		return data;
	}
	
	public void setData(T data) {
		this.data = data;
	}
	
	
}
